local rect = ac.rect.j_rect('base')
local mt = ac.skill['逆乱流']
mt.area = 2000
mt.effect_model = [[dcebf9ab46c979af453c0cddcae6fe03.mdl]]

function mt:on_cast_shot()
    local hero = self.owner
    local point = hero:get_point()
    hero:add_effect([[9753276ca38a709ee315c35f23214d61.mdl]],'chest',1)
    for a=1,30 do
        local p = rect:random()
        ac.hint_red(p,150,1)
        ac.wait(1000,function()
            p:add_effect(self.effect_model):remove()
            local damage = hero:get('攻击') * self.data1/100
            hero:aoe_damage(p,150,damage,'魔法',function(unit)
                unit:add_buff '晕眩'{time = 1}
                unit:add_buff '击飞'{time = 0.5}
            end)
        end)
    end
end

